package com.recharge.mapper;

import com.recharge.domain.TradeMerchant;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ITradeMerchantMapper {

    TradeMerchant selectById(String merId);

    TradeMerchant selectInfoByMd5Key(@Param("merId") String merId, @Param("md5Key") String md5Key);

    int addBalance(@Param("merId") String merId, @Param("cost") BigDecimal cost);

    int subBalance(@Param("merId") String merId, @Param("cost") BigDecimal cost);
}